It's dependent your data. If your data is Image UIIMage * image = UIImage alloc initWithData:Receivedata If data is string NSMutableString *string = NSMutableString alloc initwithData:Receivedata encoding:nil.
Thanks! I did try NSUTF8StringEncoding. But it retun incorrect string.
What means "endcoding: nil"? – ChangUZ Aug 23 at 8:00 If your character is UTF, you should use NSUTFStringEncoding – user899772 Aug 23 at 8:24 you put my code in: - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data method? – user899772 Aug 23 at 8:25 No, I didn't put it... Only "nil" dose work fine.
– ChangUZ Aug 29 at 4:18.
In didReceiveData write to an NSMutableData object, then in checkLinkResult create a string from the NSMUtableData using the appropriate encoding. It's actually how it's done in the apple NSConnection tutorial.
How to know " the appropriate encoding. "? – ChangUZ Aug 23 at 7:46.
Follow the following steps: Declare a file scope NSMutableData instance. In your connection:DidRecieveData: callback append "data" to the previously created NSMutableData instance. In connectionDidFinishLoading: callback use initWithData:encoding: of NSString and pass the NSMutableData instance and NSUTF8StringEncoding as parameters.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.